<template>
  <el-menu
    :default-active="activePage"
    class="el-menu"
    @open="handleOpen"
    @close="handleClose"
    @select="handleSelect"
  >
    <el-menu-item index="1">
      <template #title>
        <el-icon><setting /></el-icon>
        <span>账号设置</span>
      </template>
    </el-menu-item>
    <el-menu-item index="2">
      <el-icon><document /></el-icon>
      <span>SSH秘钥设置</span>
    </el-menu-item>
    <el-menu-item index="3">
      <el-icon><User /></el-icon>
      <span>密码设置</span>
    </el-menu-item>
    <!-- <el-menu-item index="4">
      <el-icon><ChatDotRound /></el-icon>
      <span>消息通知</span>
    </el-menu-item> -->
  </el-menu>
</template>
<script>
export default {
  name: "UserSettingAside",
  data() {
    return { activePage: "1" };
  },
  methods: {
    handleSelect(index) {
      this.activePage = index;
      if (this.activePage == "1") this.$router.push("/userinformationsetting");
      else if (this.activePage == "2") this.$router.push("/sshsetting");
      else if (this.activePage == "3") this.$router.push("/useraccount");
      else this.$router.push("/usernotice");
    },
  },
};
</script>
<style scoped></style>
